package com.ncut.data.service;

import com.ncut.vo.OrderReportVO;
import com.ncut.vo.SalesTop10ReportVO;
import com.ncut.vo.TurnoverReportVO;
import com.ncut.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @FileName ReportService
 * @Description
 * @Author Sword
 * @date 2025-07-27
 **/
public interface ReportService {

    /**
     * 营业额统计
     *
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     *
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     *
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);

    /**
     * 查询销量排名top10
     *
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * 导出营业数据
     *
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
